﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第五十九题
//BC61 金字塔图案
//https://www.nowcoder.com/practice/d84e8339f9444bb6b29bd3f227c8e538?tpId=107&tqId=33342&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    while (scanf("%d", &n) != EOF) {
        //控制行数
        for (int i = n; i > 0; i--) {
            int j = i - 1;
            //打印空格
            for (j = i - 1; j > 0; j--) {
                printf(" ");
            }

            //打印*
            for (int k = n - i + 1; k > 0; k--) {
                printf("* ");
            }

            printf("\n");
        }
    }
    return 0;
}